// import '@/assets/css/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'

import pinia from './stores'

//引入路由鉴权的文件
import './permission'

import '../node_modules/scss-reset/src/scss/_reset.scss';

import HospitalHeader from './components/header/Header.vue'
import HospitalFooter from './components/footer/Footer.vue'
import Login from './components/login/index.vue'
import Countdown from './components/countdown/index.vue'


import App from './App.vue'
import router from './router'

const app = createApp(App)


app.component('HospitalHeader', HospitalHeader)
app.component('HospitalFooter', HospitalFooter)
app.component('Login', Login)
app.component('Countdown', Countdown)

// app.use(createPinia())
app.use(pinia)
app.use(router)
app.use(ElementPlus, {
  locale: zhCn,
})

app.mount('#app')
